// types/dashboard.ts
export interface SystemMonitorData {
  // 实时业务指标
  onlineUsers: number
  activeSessions: number
  todayTransactions: number
  pendingOrders: number
  
  // 系统健康状态
  cpuUsage: number
  memoryUsage: number
  diskUsage: number
  networkLatency: number
  
  // 异常告警汇总
  criticalAlerts: number
  warningAlerts: number
  infoAlerts: number
  resolvedAlerts: number
}

export interface OperationData {
  // 用户增长趋势
  userGrowth: {
    date: string
    count: number
  }[]
  
  // 业务量统计
  businessVolume: {
    type: string
    count: number
  }[]
  
  // 收入分析
  incomeAnalysis: {
    date: string
    amount: number
  }[]
}

export interface ServiceStatus {
  // API服务状态
  apiServices: {
    name: string
    status: 'up' | 'down' | 'degraded'
    responseTime: number
    lastCheck: string
  }[]
  
  // 数据库状态
  databases: {
    name: string
    status: 'up' | 'down' | 'degraded'
    connections: number
    maxConnections: number
  }[]
  
  // 缓存服务状态
  cacheServices: {
    name: string
    status: 'up' | 'down' | 'degraded'
    hitRate: number
    memoryUsage: number
  }[]
}